package com.design.decorator;

/**
 * @author leali
 * @title: BlackBorderDecorator
 * @projectName design
 * @description: 黑色边框装饰类：具体装饰类
 * @date 2022/1/2 23:18
 */
public class BlackBorderDecorator extends ComponentDecorator {
    public BlackBorderDecorator(Component component) {
        super(component);
    }

    public void setBlackBorder() {
        System.out.println("为构件增加黑色边框-BlackBorderDecorator");
    }

    @Override
    public void display() {
        this.setBlackBorder();
        super.display();
    }
}
